package com.maimao.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author MaoLin Wang
 * @date 2020/12/26 8:25 下午
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.maimao.core"})
@ComponentScan(basePackages = {"com.maimao.api"})
@ComponentScan(basePackages = {"com.maimao.search"})
@ComponentScan(basePackages = {"com.maimao.message.kafka"})
@RefreshScope
@EnableDiscoveryClient
@EnableFeignClients
public class SearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }
}
